<template>
  <div class="application-item-box" @click="gotoDetails()">
    <div class="item-box-contant typeCloud">
      <div class="box-left">
        <van-image
          width="44"
          height="42"
          radius="6"
          src="https://img2.baidu.com/it/u=3090414353,353215991&fm=253&fmt=auto&app=138&f=PNG?w=480&h=480"
        />
      </div>

      <div class="box-center">
        <div class="box-center-top">王者荣耀</div>
        <div class="box-center-bottom">空岛集结</div>
      </div>
      <div class="box-right">
        <van-button type="primary" size="small" class="down-btn" round>获取</van-button>
        <!-- v-if="btnType == 'gain'" -->
      </div>
    </div>
  </div>
</template>

<script setup>
import { RouterView, useRoute, useRouter } from 'vue-router'
const router = useRouter()

const gotoDetails = (id) => {
  console.log('gotoList')
  router.push({
    name: 'ApplicationDetails',
    params: {
      id,
    },
  })
}
</script>

<style lang="scss" scoped>
.application-item-box {
  display: flex;
  align-items: center;
  padding: 0 3%;
  .item-box-contant {
    display: flex;
    align-items: center;
    width: 94%;
  }
  .box-left {
    width: 80px;
    display: flex;
    justify-content: center;
  }
  .typeCloud {
    padding: 10px 0;
  }
  .typeCloud .box-left {
    display: flex;
    justify-content: center;
    justify-content: flex-start;
    width: auto;
    margin-right: 12px;
  }
  .typeCloud .box-right {
    width: auto;
    .down-btn {
      // color: #0d7ffe !important;
      font-weight: bold;
      background: rgb(245, 245, 245);
      border-color: rgb(245, 245, 245);
      color: #0d7ffe !important;
    }
  }
  .box-center {
    flex: 1;
    .box-center-top {
      font-weight: bold;
      margin-bottom: 6px;
      font-size: 15px;
    }
    .box-center-bottom {
    }
  }
  .box-right {
    width: 90px;
  }
  .down-btn {
    padding: 8px 20px !important;
    font-size: 14px;
  }
  // .white-color {
  //   color: #fff;
  // }
}
</style>
